package jsu.xxy.coffee3.mapper;

import jsu.xxy.coffee3.domain.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.jmx.export.annotation.ManagedNotifications;

/**
* @author 张从轩
* @description 针对表【customer(员工表)】的数据库操作Mapper
* @createDate 2023-12-03 11:04:47
* @Entity jsu.xxy.coffee3.domain.Customer
*/
@Mapper
public interface CustomerMapper extends BaseMapper<Customer> {


    @Update("update customer set nickname = #{nickname} ,phone=#{phone},birthday=#{birthday}, gender=#{gender},point=#{point} where cid = #{cid}")
    public int updateNoPassword(Customer customer);
    @Insert("insert into customer (nickname,phone,password,birthday,gender,point) values (#{nickname},#{phone},#{password},#{birthday},#{gender},#{point})")
    void add(Customer customer);


}




